package dao;

import java.util.List;

import pojo.MissionRelations;
import pojo.Missions;
import pojo.ProjectMissions;
import pojo.Teams;

/** 
* @author WuYuan
* 
*/
public interface MissionsDao {
	public List<Missions> findMissionsByUrpid(String projectid, String userid, String roleId)throws Exception;
	public List<ProjectMissions> findProjectMissionsByUrpid(String projectid, String roleid)throws Exception;
	public List<ProjectMissions> findProjectMissionsIsCPByUrpid(String projectid, String roleid)throws Exception;
	public int updateMissionsToCompleted(String missionid)throws Exception;
	public List<MissionRelations> findPMRelationsByUrpid(String projectId,String roleId)throws Exception;
	public Missions findMissionsByMissionid(String missionid)throws Exception;
	public int updateObjectivescore(String missionid)throws Exception;
	public List<Teams> findTeamsByUrpid(String userid)throws Exception;
	public List<Missions> findAllMissionsByMissionid(String missionid)throws Exception;
	public int updateProjectMissionsToCompleted(String missionid)throws Exception;
}
